Skip to content

Instantly share code, notes, and snippets.

@pedramamini
pedramamini / rocky_say
Last active July 7, 2026 16:49
rocky_say — Rocky voice TTS from Project Hail Mary (voice cloning + text style transform)
#!/usr/bin/env python3
"""
rocky_say — Text-to-speech using Rocky's cloned voice (Project Hail Mary)
Transforms input text into Rocky's speech patterns ("text GAN"), then
synthesizes audio using XTTS v2 voice cloning. Rocky is the Eridian alien
from Andy Weir's Project Hail Mary, voiced by James Ortiz in the 2026 film.
His speech patterns are distinctive: dropped articles, simplified grammar,
word tripling for emphasis ("good good good", "bad bad bad"), and the

Widget Creator Script

This script does most of the widget creating work for you if you've found the manual tutorials too hard to follow.

How to use:

  1. Navigate to the Discord Developer Portal
  2. Press Ctrl+Shift+I to open DevTools
  3. Go to the Console tab
  4. Paste the following code and hit enter:
Details
//
// BlobView.swift
// Prototypes
//
// Created by Shubham on 07/07/26.
//
import SwiftUI
struct BlobView: View {
@sebjvidal
sebjvidal / ViewController.swift
Created April 19, 2026 21:32
Collection View Layout Margins Demo
private func setupCollectionView() {
let layout = UICollectionViewCompositionalLayout { [unowned self] section, environment in
let spacing: CGFloat = 8
let numberOfColumns: CGFloat = 5
let numberOfSpacers: CGFloat = numberOfColumns - 1
let contentWidth = collectionView.layoutMarginsGuide.layoutFrame.width
let itemWidth = (contentWidth - numberOfSpacers * spacing) / numberOfColumns
let layoutItemSize = NSCollectionLayoutSize(widthDimension: .absolute(itemWidth), heightDimension: .fractionalHeight(1))
@spboyer
spboyer / skills-mcp-development-guide-v2.md
Last active July 7, 2026 16:43
Skills, Tools & MCP Development Guide v3 - Cross-model description compatibility, WHEN: triggers, anti-trigger deprecation

Skills, Tools & MCP Development Guide

A Practical Guide for Building Agent Capabilities

"Skills orchestrate the how. MCP Tools execute the what."

This guide consolidates learnings from building AI agent capabilities for Azure, focusing on the relationship between Skills (workflow orchestration) and MCP Tools (discrete operations). Whether you're creating a new Copilot Skill, building an MCP server, or integrating both, this document provides the architecture patterns, development best practices, and real-world case studies you need to build effective, non-conflicting agent capabilities. The core principle is simple: Skills act as the "brain" that orchestrates complex workflows, while MCP Tools serve as the "hands" that execute individual operations—and Skills should invoke MCP Tools, not duplicate them.


@edirpedro
edirpedro / estados-brasil.php
Last active July 7, 2026 16:42
Estados do Brasil (Lista, Array)
// Lista
AC, Acre
AL, Alagoas
AP, Amapá
AM, Amazonas
BA, Bahia
CE, Ceará
DF, Distrito Federal
ES, Espirito Santo

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@opinner
opinner / cross_correlation_example.ipynb
Created July 7, 2026 10:27
cross_correlation_example.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@opinner
opinner / finestructure-example-from-weddell-sea-ctds.ipynb
Last active July 7, 2026 16:38
Finestructure Example from Weddell Sea CTDs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.